package net.xo68.destiny.core.eventbus;

import com.lmax.disruptor.EventHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * 事件异常处理器
 * @author wuxie
 * @version 2020-9-24
 */
@Slf4j
public class ExceptionEventHandle implements EventHandler<MessageEvent> {

    @Override
    public void onEvent(MessageEvent event, long l, boolean b) throws Exception {
      log.error("event type: {}, event body: {}", event.getEventType(),event.getBody());
    }
}
